how to simulate circuit in software